package com.jims.master.modules.orders.vo;

import java.beans.Transient;
import java.io.Serializable;

/**
 * Created by admin on 2017/4/9.
 */
public class CountDrug implements Serializable {
    private static final long serialVersionUID = 1L;

    private String drugName;
    private String drugSpec;
    private String firmName;
    private String drugUnits;
    private double amount;
    private double stock;
    private Integer days;
    private String clinicItemId;
    private String dispNo;
    private double price;

    public String getClinicItemId() {
        return clinicItemId;
    }

    public void setClinicItemId(String clinicItemId) {
        this.clinicItemId = clinicItemId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public double getStock() {
        return stock;
    }

    public void setStock(double stock) {
        this.stock = stock;
    }

    public String getDrugSpec() {
        return drugSpec;
    }

    public void setDrugSpec(String drugSpec) {
        this.drugSpec = drugSpec;
    }

    public String getFirmName() {
        return firmName;
    }

    public void setFirmName(String firmName) {
        this.firmName = firmName;
    }

    public String getDrugUnits() {
        return drugUnits;
    }

    public void setDrugUnits(String drugUnits) {
        this.drugUnits = drugUnits;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }


    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }


    @Transient
    public String getRedFlag(){
        String returnVal="";
        if(this.stock>=this.amount){
            returnVal="0";
        }else{
            returnVal="1";
        }
        return returnVal;
    }

    public String getDispNo() {
        return dispNo;
    }

    public void setDispNo(String dispNo) {
        this.dispNo = dispNo;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
